const db = wx.cloud.database();
const app = getApp();

Page({
  data: {
    area: '',
    geneal: '',
    page:46
  },
  onLoad: function (options) {
    var that = this;
    console.log(options);
    that.setData({
      area: options.area,
      agent: options.agent
    })
    if (options.page) {
      that.setData({
        page: options.page
      })
    }
  },
  to1: function () {
    var that = this;
    wx.navigateTo({
      url: '../welcome/welcome?area=' + that.data.area + '&agent=' + that.data.agent + '&page=' + that.data.page,
    })
  },
  to2: function (e) {
    wx.navigateToMiniProgram({
      appId: 'wxa7735e23f150b26d',
     path: 'pages/index/index',
     envVersion: 'release',// 打开正式版
      success(res) {
          // 打开成功
     },
       fail: function (err) {
         console.log(err);
      }
  })
  },
    /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
  
})